import request from '@/utils/request'
// 查询仿真软件
export function getAppList() {
    return request({
      url: `/setting/getAppList`,
      method: 'post',
      //data,
    })
  }
// 查询仿真模块
export function getAppModuleListByAppId(id) {
    return request({
      url: `/setting/getAppModuleListByAppId/${id}`,
      method: 'post',
      //data,
    })
}
// 新增分组
export function addGroup(data) {
    return request({
      url: `/setting/addGroup`,
      method: 'post',
      data,
    })
}
// 删除分组
export function deleteGroup() {
    return request({
      url: `/setting/deleteGroup/${id}`,
      method: 'post',
      //data,
    })
}
// 编辑分组
export function editGroup(data) {
    return request({
      url: `/setting/editGroup`,
      method: 'post',
      data,
    })
}
// 查询分组
export function listGroup(appId,moduleId) {
    return request({
      url: `/setting/listGroup/${appId}/${moduleId}`,
      method: 'post',
      data,
    })
}

// 根据仿真软件与仿真模块，获取参数列表
export function selectAppParamTree(appId,moduleId) {
    return request({
      url: `/param/selectAppParamTree/${appId}/${moduleId}`,
      method: 'post',
      //data,
    })
}

//添加参数
export function addParam(data) {
  return request({
    url: `/param/addParam`,
    method: 'post',
    data,
  })
}

//查询分组列表
export function deleteParam(id) {
  return request({
    url: `/param/deleteParam/${id}`,
    method: 'post',
    //data,
  })
}

//编辑参数
export function editParam(data) {
  return request({
    url: `/param/editParam`,
    method: 'post',
    data,
  })
}

